import { Component, OnInit } from '@angular/core';
import {Router} from "@angular/router";

@Component({
  selector: 'app-product-index',
  templateUrl: './product-index.component.html',
  styleUrls: ['./product-index.component.css']
})
export class ProductIndexComponent implements OnInit {

  constructor(private router: Router) { }

  ngOnInit(): void {
  }

  jumpToDetail() {
    this.router.navigateByUrl('/pdetail')
  }
}
